Skip to content

fix: throw exception API requests return HTTP status != 200#96

Merged
stklcode merged 1 commit into
mainfrom
fix/httpstatus
May 14, 2026
Merged

fix: throw exception API requests return HTTP status != 200#96
stklcode merged 1 commit into
mainfrom
fix/httpstatus

Conversation

@stklcode
Copy link
Copy Markdown
Owner

This is an old regression from Java 11 HttpClient migration that was never properly tested. Empty responses with HTTP error status silently fail with an empty list of stops/trips.
Validate response status and throw an exception if it's not 200.

Fixes: 88c10d5

This is an old regression from Java 11 HttpClient migration that was
never properly tested. Empty responses with HTTP error status silently
fail with an empty list of stops/trips.
Validate response status and throw an exception if it's not 200.

Fixes: 88c10d5
@stklcode stklcode added this to the 3.0.0 milestone May 14, 2026
@stklcode stklcode self-assigned this May 14, 2026
@stklcode stklcode added the bug label May 14, 2026
@sonarqubecloud
Copy link
Copy Markdown

@stklcode stklcode merged commit f37b73c into main May 14, 2026
7 checks passed
@stklcode stklcode deleted the fix/httpstatus branch May 14, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant